package com.fortune.dto.in.dUser;

import javax.validation.constraints.Pattern;

import com.fortune.constants.PatternConstants;

import io.swagger.annotations.ApiModelProperty;

public class DChangePasswordDto {
	@Pattern(regexp=PatternConstants.PASSWORD, message="新密码格式错误")
	@ApiModelProperty(required=true, example="新密码")
	private String newPassword;
	@Pattern(regexp=PatternConstants.PASSWORD, message="旧密码格式错误")
	@ApiModelProperty(required=true, example="旧密码")
	private String oldPassword;
	public String getNewPassword() {
		return newPassword;
	}
	public void setNewPassword(String newPassword) {
		this.newPassword = newPassword;
	}
	public String getOldPassword() {
		return oldPassword;
	}
	public void setOldPassword(String oldPassword) {
		this.oldPassword = oldPassword;
	}
	@Override
	public String toString() {
		return "SalesManChangePasswordDto [newPassword=" + newPassword + ", oldPassword=" + oldPassword + "]";
	}
}
